<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Vue 测试实例 - 菜鸟教程(runoob.com)</title>
<script src="https://cdn.staticfile.org/vue/3.2.36/vue.global.min.js"></script>
</head>

<body>
<div id="hello-vue" class="demo">
  请输入分数：<input type="text" v-model="score"> 
  <p v-if="score<60 && score>=0">不及格</p>
  <p v-else-if="score>=60 && score<80">中</p>
  <p v-else-if="score>=80 && score<90">良</p>
  <p v-else-if="score>=90 && score<=100">优</p>
  <p v-else> error</p>
</div>

<script>
const app =  Vue.createApp({
  data() {
    return {
      score:0
  }
}
}).mount('#hello-vue')
</script>
</body>
</html>
